import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import i18n from "./locale";
import store from "./store";
import init from "@/plugins";

import ElementUI from "element-ui";

import "./assets/styles/reset.css";

const isProduction = process.env.NODE_ENV === "production";

!isProduction && (() => import("element-ui/lib/theme-chalk/index.css"))();

Vue.use(init);
Vue.use(ElementUI, { i18n: (key, value) => i18n.t(key, value) });

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App),
}).$mount("#app");
